import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'vant/lib/index.less'
import './core/antLazyUse' // 按需引入
// import Vconsole from 'vconsole'
// 与移动端交互
import Bridge from './common/bridge.js'
import 'amfe-flexible'
// 引入公共样式
import './global.less'
// Vue.use(Vconsole)production
// process.env.NODE_ENV === 'development' && new Vconsole()
// process.env.NODE_ENV === 'production' && new Vconsole()
Vue.prototype.$bridge = Bridge
router.beforeEach((to, from, next) => {
  window.scroll(0, 0)
  if (to.meta.title) {
    document.title = to.meta.title
  }
  // if(access_token){
  next()
  // }
})
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
